package wysiwyg.client.widgets;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiTemplate;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Widget;
import com.sencha.gxt.widget.core.client.Component;
import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer;
import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer.BorderLayoutData;
 import com.sencha.gxt.widget.core.client.container.MarginData;

public class BorderLayoutWidget implements IsWidget {
	@UiTemplate("BorderLayoutWidget.ui.xml")
	interface MyUiBinder extends
		UiBinder<Component, BorderLayoutWidget> {
	}

	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
	
	@UiField(provided = true)
	MarginData outerData = new MarginData( );
	@UiField(provided = true)
	BorderLayoutData northData = new BorderLayoutData(25);
	@UiField(provided = true)
	BorderLayoutData westData = new BorderLayoutData(150);
	@UiField(provided = true)
	MarginData centerData = new MarginData();
	@UiField(provided = true)
	BorderLayoutData eastData = new BorderLayoutData(150);
	
	@UiField
	BorderLayoutContainer con;

	public Widget asWidget() {
		northData.setMaxSize(25);
		westData.setCollapsible(true);
		westData.setSplit(true);
		eastData.setCollapsible(true);
		eastData.setSplit(true);
		return uiBinder.createAndBindUi(this);
		  
	}

}
